import { RouteObject } from "react-router-dom";

import BasicLayout from "@/layout";

import Console from "@/views/dashboard/console";
import Monitor from "@/views/dashboard/monitor";
import Workplace from "@/views/dashboard/workplace";

const route: RouteObject = {
  key: "/dashboard",
  label: "Dashboard",
  path: "/dashboard",
  element: <BasicLayout />,
  children: [
    {
      key: "/dashboard/console",
      label: "主控台",
      path: "/dashboard/console",
      element: <Console />,
    },
    {
      key: "/dashboard/monitor",
      label: "监控页",
      path: "/dashboard/monitor",
      element: <Monitor />,
    },
    {
      key: "/dashboard/workplace",
      label: "工作台",
      path: "/dashboard/workplace",
      element: <Workplace />,
    },
  ],
};

export default route;
